package Default;

public class Body {
	
	private Vector position;
	private Vector prev_position;
	private Vector velocity;
	public Vector getVelocity() {
		return velocity;
	}

	public void setVelocity(Vector velocity) {
		this.velocity = velocity;
	}

	private int mass;
	private int radius;
	
	public Body(double x, double y, int mass) {
		position = new Vector(x, y, 0);
		this.mass = mass;
		this.radius = mass / 2;
		velocity = new Vector(0, 0, 0);
	}
	
	public void move(double x, double y) {
		position.add(new Vector(x, y, 0));
	}

	public Vector getPosition() {
		return position;
	}

	public void setPosition(Vector position) {
		this.position = position;
	}

	public Vector getPrev_position() {
		return prev_position;
	}

	public void setPrev_position(Vector prev_position) {
		this.prev_position = prev_position;
	}

	public int getMass() {
		return mass;
	}

	public void setMass(int mass) {
		this.mass = mass;
	}

	public int getRadius() {
		return radius;
	}

	public void setRadius(int radius) {
		this.radius = radius;
	}
	
	
	
	

	
	
	
}
